package cranim.simulation;

import cranim.Constants;

/**
 *
 * @author Benedikt
 */
public class Shot implements Constants{
    
    private Unit shooter, target;
    private int hullDmg;
    private int shieldDmg;
    
    public Shot(Unit shooter, Unit target, int[] dmg){
        this.shooter = shooter;
        this.target = target;
        this.shieldDmg = dmg[SHIELD_DMG];
        this.hullDmg = dmg[HULL_DMG];
    }
    
    public int[] getDmg(){
        int[] dmg = {shieldDmg, hullDmg};
        return dmg;
    }
    
    public Unit getShooter(){
        return shooter;
    }
    
    public Unit getTarget(){
        return target;
    }
}
